<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2023/2/6
  Time: 16:48
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
        <table border="1px" cellspacing="0" width="500px" height="400px">
            <tr>
                <th>商品名称</th>
                <th>商品价格</th>
                <th>商品颜色</th>
                <th>商品图片</th>
                <th>商品描述</th>
                <th>其他操作</th>
            </tr>
            <c:forEach items="${list}" var="shop">
                <tr>
                    <td>${shop.pname}</td>
                    <td>${shop.pprice}</td>
                    <td>${shop.pcolor}</td>
                    <td>
                            <img src="${shop.pimg}" width="170px" height="80px">
                    </td>
                    <td>${shop.pdesc}</td>


                    <td>

                        <a href="${pageContext.request.contextPath}/shop/findById/${shop.id}">修改</a>
                        <a href="${pageContext.request.contextPath}/shop/del?ids=${shop.id}">删除</a>
                    </td>
                </tr>
            </c:forEach>


        </table>
</body>
</html>
